import { observable, action } from 'mobx';
export class SearchPageStore {
    @observable placeholder = "";
    ssName = "";
    @observable list = [];
    @observable searchValue = "";
    

    @action("set")
    setState = (state = {}) => {
        const keys = Object.keys(state);
        keys.forEach(key => {
            this[key] = state[key]
        })
    }

    @action("清空")
    clearSotre = () => {
        this.placeholder = "";
        this.ssName = "";
        this.list = [];
    }
}